import request from '@/utils/request'

export default {
  save: function (data) {
    return request({
      url: '/supOrder/save',
      method: 'post',
      data
    })
  },
  getList: function (data) {
    return request({
      url: '/supOrder/listByPage',
      method: 'post',
      data
    })
  },
  getGoodsListByOrderId(id) {
    return request({
      url: '/supOrder/getGoodsListByOrderId/'+id,
      method: 'get'
    })
  },
  backOrder: function (id) {
    return request({
      url: '/supOrder/backOrder/'+id,
      method: 'get'
    })
  },
  flushOrder: function () {
    return request({
      url: '/supOrder/flushOrderStatus',
      method: 'get'
    })
  },
}
